package com.apartment.common.exception;

/**
 * @author sxy
 * @version 1.0
 * @date 2020/9/3 0003 下午 4:16
 */
public class SubscribeException extends RuntimeException {
    private Integer code;
    private String message;

    public SubscribeException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public SubscribeException(String message, Integer code, String message1) {
        super(message);
        this.code = code;
        this.message = message1;
    }

    public SubscribeException(String message, Throwable cause, Integer code, String message1) {
        super(message, cause);
        this.code = code;
        this.message = message1;
    }

    public SubscribeException(Throwable cause, Integer code, String message) {
        super(cause);
        this.code = code;
        this.message = message;
    }

    public SubscribeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Integer code, String message1) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.message = message1;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
